var io = require('io');
describe('IO', function () {
    it('does not encode url query and encode data query', function () {
        var ok = 0;
        var p = window.decodePath || '/kissy/src/io/tests/specs/decode/t.jss';
        io({
            url: p + '?t=1,2',
            data: {
                y: '3,4'
            },
            // dataType:'json',
            success: function (data) {
                expect(data.originalUrl.toLowerCase())
                    .toBe('/kissy/src/io/tests/specs/decode/t.jss?y=3%2c4&t=1,2');
                expect(data.t).toBe('1,2');
                expect(data.y).toBe('3,4');
                ok = 1;
            }
        });

        waitsFor(function () {
            return ok;
        });
    });
});